<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="jp.co.lkg.springsmp.common.*"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.sun.corba.se.impl.javax.rmi.CORBA.Util"%>
<%@page import="com.sun.xml.internal.bind.v2.schemagen.xmlschema.Import"%>
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%> 
<c:set var="webctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<title>某某科技有限公司</title>
	<meta name="keywords" content="某某科技有限公司">
	<meta name="description" content="某某科技有限公司">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<link rel="shortcut icon" href="images/favicon.ico">
	
	<!-- include main css -->
	<link rel="stylesheet" type="text/css" href="${webctx}/resources/css/slick.css"/>	
	<link rel="stylesheet" type="text/css" href="${webctx}/resources/css/bootstrap.css"/>
	<link rel="stylesheet" type="text/css" href="${webctx}/resources/css/jquery.mmenu.all.css"/>
	<link rel="stylesheet" type="text/css" href="${webctx}/resources/css/style.css"/>
	<link rel="stylesheet" type="text/css" href="${webctx}/resources/css/detail.css"/>
	<link rel="stylesheet" type="text/css" href="${webctx}/resources/css/jquery.mCustomScrollbar.css"/>
	<link rel="stylesheet" href="http://cdn.bootcss.com/animate.css/3.5.1/animate.min.css">
	
	
	<!--Include Js-->
<script src="http://apps.bdimg.com/libs/jquery/1.8.3/jquery.min.js" type="text/javascript" charset="utf-8"></script>

<!--移动端导航-->
<spring:url value="/resources/js/jquery.mmenu.all.min.js" var="mmenu" />
<script src="${mmenu}"></script>
<spring:url value="/resources/js/public.js" var="publicJS" />
<script src="${publicJS}"></script>
<spring:url value="/resources/js/main.js" var="mainJs" />
<script src="${mainJs}"></script>
<script src="http://cdn.bootcss.com/wow/1.1.2/wow.min.js"></script>

<!--slick-->
<spring:url value="/resources/js/slick.min.js" var="slick" />
<script src="${slick}"></script>

<!--placeholder-->
<spring:url value="/resources/js/jquery.placeholder.min.js" var="placeholder" />
<script src="${placeholder}"></script>
<script type="text/javascript">
	$(function(){ $('input, textarea').placeholder(); });
	
	function orderAdd() {
		$('#orderaddForm').attr('action', "addorder");
		$('#orderaddForm').submit();
	}
	
</script>
 <%
 	SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	SimpleDateFormat number = new SimpleDateFormat("yyyyMMddHHmmss");
	%>
<!--<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>-->
</head>
<body>
<form  id="orderaddForm"  method="post" action="userinfoForm" >
<div>
	
	<!--header-->
	<header class="header">
		<section class="container naver clearfix">
			<div class="logo pull-left"><a href="index.html" title="某某科技有限公司" alt="某某科技有限公司">MOU MOU</a></div>
			<nav class="nav pull-left">
				<ul>
					<li class="active"><a href="first">首页</a></li>
					<li><a href="product.html">私人定制</a>
						<ul>
							<li><a href="showflower">私人定制</a></li>
							<li><a href="showprivateorder">定制订单</a></li>
						</ul>
					</li>
					<li><a href="case.html">我的订单</a>
						<ul>
							<li><a href="showorder?username=<%=((jp.co.lkg.springsmp.common.db.dto.UserinfoDto)request.getSession().getAttribute("sessionUser")).getUsername()%>">查看订单</a></li>
							<li><a href="#">新增分类</a></li>
						</ul>
					</li>
					<li><a href="contact.html">联系我们</a>
						<ul>
							
							<li><a href="message.html">在线留言</a></li>
							
						</ul>
					</li>
				</ul>
			</nav>
			<div class="search pull-left">
				<img src="${webctx}/resources/images/search.png"/>
				<input type="text" class="top_search"   value="" />
				<input type="submit" class="top_sub" value="搜索" />
			</div>
			<div class="language pull-right clearfix">
				<div class="language_wrap">
					<a href="#">EN</a>
					<a href="#">CN</a>
				</div>
				
				<span > <%=((jp.co.lkg.springsmp.common.db.dto.UserinfoDto)request.getSession().getAttribute("sessionUser")).getUsername()%></span>
				
			</div>
		</section> 		
	</header>
	
    <section class="container">
    	<a href="#mmenu" class="phone-nav glyphicon glyphicon-list"></a>
    </section> 
			
	
	



	<!--移动端  Mmenu-->
	<nav id="mmenu">
		<ul>
			<li><a href="">English</a></li>
			<li><a href="index.html">首 页</a></li>
			<li><a href="brand.html">品牌简介</a>
				<ul>
					<li><a href="brand.html">品牌简介</a></li>
					<li><a href="">企业文化</a></li>
					<li><a href="honor.html">荣誉资质</a></li>
				</ul>
			</li>
			<li><a href="product.html">产品中心</a>
				<ul>
					<li><a href="">婚礼花艺</a>
						<ul>
							<li><a href="">求婚必备</a></li>
							<li><a href="">情人节专属</a></li>
							<li><a href="">其他鲜花</a></li>
						</ul>
					</li>
					<li><a href="product.html">爱情鲜花</a>
						<ul>
							<li><a href="">求婚必备</a></li>
							<li><a href="product.html">情人节专属</a></li>
							<li><a href="">其他鲜花</a></li>
						</ul>
					</li>
					<li><a href="">长辈鲜花</a>
						<ul>
							<li><a href="">求婚必备</a></li>
							<li><a href="">情人节专属</a></li>
							<li><a href="">其他鲜花</a></li>
						</ul>
					</li>
					
				</ul>
			</li>
			<li><a href="case.html">经典案例</a>
				<ul>
					<li><a href="case.html">经典案例</a></li>
					<li><a href="">新增分类</a></li>
				</ul>
			</li>
			<li><a href="flower.html">花之物语</a>
				<ul>
					<li><a href="flower.html">花之物语</a></li>
					<li><a href="">养花知识</a></li>
				</ul>
			</li>
			<li><a href="contact.html">联系我们</a>
				<ul>
					<li><a href="contact.html">联系我们</a></li>
					<li><a href="message.html">在线留言</a></li>
					<li><a href="job.html">人才招聘</a></li>
				</ul>
			</li>
		</ul>
	</nav>	
		
</div>	

<!--内页内容区域-->

<div class="container ny-wrap">
 <c:forEach var="item" items="${list}" varStatus="status">
<div class="pro-title clearfix">
		<span class="pull-left">产品中心<a href="#" style="font-size:25px;">->${item.goodName}</a></span>
	</div> 
	<input type="hidden" name="goodId" value="${item.goodId}">
	<input type="hidden" name="orderinsertDto.orderId" value="<%=number.format(new Date()) %>">
	<input type="hidden" name="orderinsertDto.orderName" value="${item.goodName}">
	<input type="hidden" name="orderinsertDto.orderCost" value="${item.goodPrice}">
	<input type="hidden" name="orderinsertDto.orderPaystatus" value="未支付">
	<input type="hidden" name="orderinsertDto.orderTime" value="<%=sdf.format(new Date()) %>">
	<input type="hidden" name="orderinsertDto.orderImage" value="${item.goodImage}">
	<input type="hidden" name="orderinsertDto.orderOwner" value="<%=((jp.co.lkg.springsmp.common.db.dto.UserinfoDto)request.getSession().getAttribute("sessionUser")).getUsername()%>">
	<input type="hidden" name="orderinsertDto.orderStatus" value="正常">
	<div class="container love-wrap pro-con proshow-con">
		<div class="proshow clearfix">
			<div class="prosleft pull-left">
				<div class="products-pic-max f-l" id="slick-1">
					<div><span class="pic"><img src="${webctx}/resources/upload/good/${item.goodImage }" height="450px" class="vcenter" alt=""/><i></i></span></div>
				</div>
			</div>
			<div id="detailright">
				<h3 style="color:blue;font-size:40px;font-family:KaiTi;font-weight:bold;">${item.goodName }</h3>
				<div class="txt" id="fprice">
					<span>单价：</span>
					<span style="font-size:35px;">¥${item.goodPrice }</span>
				</div>
				<div class="txt" id="ftype">
					<span>类别：</span>
					<span>生活花艺</span>
				</div>
				<div class="txt" id="fhuayu">
					<span>花语：</span>
					<span>${item.goodIntroduction }</span>
				</div>
				<%-- <div class="txt" id="fnum">
					<span id="jian" ><img src="${webctx}/resources/images/numjian.png" height="40px" onclick="jiannum()" /></span>
					<span id="flowernum"><input type="text" name="num" value="0" size="2"/></span>
					<span id="jia"><img src="${webctx}/resources/images/numadd.png" height="40px"  onclick="addnum()"/></span>
					<span>(库存：${item.goodStock })</span>
				</div> --%>
				<div class="txt" id="faction">
				<input type="button" onclick="orderAdd()" value="加入购物车">
					<!-- <a href="tologin" onclick="orderAdd()"><span id="gouwuche">&gt;加入购物车</span></a>
					<a href="tologin" onclick="logintip()"><span id="lijigoumai">&gt;立即购买</span></a>	 -->				
				</div>
			</div>
		</div>
	</div>
	</c:forEach>
</div>


<!--底部导航-->
<div class="container footer-nav">
	<div class="panel-footer clearfix">
		<div class="footer-left pull-left">
			<ul>
				<li><a href="index.html">首页</a></li>
				<li><a href="brand.html">品牌简介</a></li>
				<li><a href="product.html">产品中心</a></li>
				<li><a href="case.html">经典案例</a></li>
				<li><a href="flower.html">花之物语</a></li>
				<li><a href="contact.html">联系我们</a></li>
				<li><a href="map.html">站点地图</a></li>
			</ul>
		</div>
		<div class="footer-right pull-right">
			<div class="friend">
				友情链接
				<img class="pull-right" src="${webctx}/resources/images/friends-bg.png" alt="" />
			</div>
			<div class="dropdown">
				<a href="http://www.baidu.com" target="_blank">百度一下，你就知道</a>
			</div>
		</div>
	</div>
	<div class="footer-copy">
		<div class="erweima-wrap"><img src="${webctx}/resources/images/erweima.jpg" alt="" /></div>
		<div class="footer-hotline">
			<img src="${webctx}/resources/images/yu.png" alt="" />
			<span>服务热线：<b>18145612345</b><em>版权所有<i>©</i>：某某科技有限公司 沪ICP备09078302号-203</em></span>
		</div>
	</div>
</div>
</form>






</body>
</html>
